package my.graduation.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import my.graduation.entity.ExaminationSchedule;
import org.apache.ibatis.annotations.Mapper;

import java.sql.Date;
import java.util.List;

/**
 * @Author: RavenLyn
 * @Date: 2024-12-15
 */
@Mapper
public interface ExaminationScheduleMapper extends BaseMapper<ExaminationSchedule> {

    List<ExaminationSchedule> adminGetListByOrder();

    List<ExaminationSchedule> doctorGetListByOrder(int clinicId);

    List<ExaminationSchedule> getCheckList(int doctorId, Date date, Integer shift);

    Boolean updateAcceptStatus(Integer examScheId, Date moDate, Integer moDay, Integer moShift);

    Boolean updateRejectStatus(Integer examScheId);

    int getShift(Integer id);

    List<ExaminationSchedule> getExistedExamSche(Integer doctorId, Date nextDate);
}
